package com.ax.associator.storepharmacist.controller;

import com.ax.associator.store.common.ajax.AjaxRes;
import com.ax.associator.store.common.log.LogInfo;
import com.ax.associator.store.common.log.OperateType;
import com.ax.associator.store.common.utils.PageUtils;
import com.ax.associator.store.common.utils.base.Const;
import com.ax.associator.storepharmacist.dao.BaseDrugstoreMapper;
import com.ax.associator.storepharmacist.service.BaseDrugstoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/web/baseDrugstore/")
public class BaseDrugstoreController {

    @Autowired
    private BaseDrugstoreService baseDrugstoreService;

    @RequestMapping("queryDrugstore")
    @LogInfo(content = "药店药师列表", operateType = OperateType.QUERY)
    public PageUtils queryDrugstore( @RequestBody Map<String,Object> map){

        PageUtils  list=baseDrugstoreService.queryDrugstore(map);


        return list;
    }
}
